//
//  FQDSectionTitleCell.m
//  FakeQDaily
//
//  Created by mewxiv on 9/18/16.
//  Copyright © 2016 Xensius. All rights reserved.
//

#import "FQDSectionTitleCell.h"

#import "Masonry.h"

@implementation FQDSectionTitleCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        _titleLabel = [[UILabel alloc] init];
        _titleLabel.font = FQDBoldFontWithSize(18.0f);
        _titleLabel.textColor = [UIColor blackColor];
        _titleLabel.textAlignment = NSTextAlignmentLeft;
        [self.contentView addSubview:_titleLabel];
        
        WeakSelf;
        [_titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(weakSelf.contentView).offset(15);
            make.right.equalTo(weakSelf.contentView).offset(-15);
            make.bottom.equalTo(weakSelf.contentView).offset(-15);
        }];
        
    }
    return self;
}

+ (NSString *)reuseId
{
    return @"FQDSectionTitleCell";
}

@end
